export class DebounceService {
  constructor() {}

  // 防抖方法
  debounce(fn: Function, delay: number) {
    let timer = null;
    if (timer) {
      clearTimeout(timer);
    }
    timer = setTimeout(fn, delay);
  }

}
